package tech.cyhk.cloud.demo.order.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author swd
 * @date 2025/1/21
 */
@Slf4j
@Component
public class ProductFeignClientFallback implements ProductFeignClient {
    /**
     * fallback 需要配合sentinel等熔断组件
     * 并开启熔断开关
     */
    @Override
    public String hello() {
        log.error("entering fallback..");
        return "fallback";
    }
}
